﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using game.LoadScene;

namespace game
{
    public class InitScript : SceneConstructor
    {
        //协程
        protected override IEnumerator DoConstruction()
        {
            // 所有的加载的资源 要再此地进行
            for (int i = 0; i < 100; i++)
            {
                Debug.Log("DoConstruction..." + i);
                yield return null;     //语法糖                    
            }
        }
    }
}

